//这个函数是绘制图表时调用数据的函数，输入为在学校界面点击的选项卡对应的键值，输出若干数组数据
//负责与数据库交互的同学可以在这个基础上更改，最后的数值应为相应地区所有省份人数总和
//图表数据是以“华东、华西、华南、华北、东北”作为分类
//数据格式:区域：人数(百)大概...
function GetDataById(id)
{
    switch(id)
    {
        case 2:
            return {name:"浙大19",
                east:20,
                west:18,
                south:16,
                north:14,
                middle:12
            }
            break;
        case 3:
            return {name:"浙大20",
                east:18,
                west:16,
                south:14,
                north:12,
                middle:20
            }
            break;
        case 4:
            return {name:"浙大21",
                east:16,
                west:14,
                south:12,
                north:20,
                middle:18
            }
            break;
        case 6:
            return {name:"清华19",
                east:14,
                west:12,
                south:20,
                north:18,
                middle:16
            }
            break;
        case 7:
            return {name:"清华20",
                east:12,
                west:20,
                south:18,
                north:16,
                middle:14
            }
            break;
        case 8:
            return {name:"清华21",
                east:20,
                west:18,
                south:16,
                north:14,
                middle:12
            }
            break;
        case 10:
            return {name:"北大19",
                east:18,
                west:16,
                south:14,
                north:12,
                middle:20
            }
            break;
        case 11:
            return {name:"北大20",
                east:16,
                west:14,
                south:12,
                north:20,
                middle:18
            }
            break;
        case 12:
            return {name:"北大21",
                east:14,
                west:12,
                south:20,
                north:18,
                middle:16
            }
            break;
        case 14:
            return {name:"复旦19",
                east:12,
                west:20,
                south:18,
                north:16,
                middle:14
            }
            break;
        case 15:
            return {name:"复旦20",
                east:20,
                west:18,
                south:16,
                north:14,
                middle:12
            }
            break;
        case 16:
            return {name:"复旦21",
                east:18,
                west:16,
                south:14,
                north:12,
                middle:20
            }
            break;
        case 18:
            return {name:"上交19",
                east:16,
                west:14,
                south:12,
                north:20,
                middle:18
            }
            break;
        case 19:
            return {name:"上交20",
                east:14,
                west:12,
                south:20,
                north:18,
                middle:16
            }
            break;
        case 20:
            return {name:"上交21",
                east:12,
                west:20,
                south:18,
                north:16,
                middle:14
            }
            break;
        case 22:
            return {name:"南大19",
                east:20,
                west:18,
                south:16,
                north:14,
                middle:12
            }
            break;
        case 23:
            return {name:"南大20",
                east:18,
                west:16,
                south:14,
                north:12,
                middle:20
            }
            break;
        case 24:
            return {name:"南大21",
                east:16,
                west:14,
                south:12,
                north:20,
                middle:18
            }
            break;
        case 26:
            return {name:"科大19",
                east:14,
                west:12,
                south:20,
                north:18,
                middle:16
            }
            break;
        case 27:
            return {name:"科大20",
                east:12,
                west:20,
                south:18,
                north:16,
                middle:14
            }
            break;
        case 28:
            return {name:"科大21",
                east:20,
                west:18,
                south:16,
                north:14,
                middle:12
            }
            break;
        case 30:
            return {name:"哈工19",
                east:18,
                west:16,
                south:14,
                north:12,
                middle:20
            }
            break;
        case 31:
            return {name:"哈工20",
                east:16,
                west:14,
                south:12,
                north:20,
                middle:18
            }
            break;
        case 32:
            return {name:"哈工21",
                east:14,
                west:12,
                south:20,
                north:18,
                middle:16
            }
            break;
        case 34:
            return {name:"西交19",
                east:12,
                west:20,
                south:18,
                north:16,
                middle:14
            }
            break;
        case 35:
            return {name:"西交20",
                east:20,
                west:18,
                south:16,
                north:14,
                middle:12
            }
            break;
        case 36:
            return {name:"西交21",
                east:18,
                west:16,
                south:14,
                north:12,
                middle:20
            }
            break;
    }
}
// function GetDataListById(List)
// {
//     var DataList=[];
//     for(var i of List)
//     {
//         var Data = GetDataById(i)
//         DataList.push(Data);
//     }
//     return DataList;
// }

export default GetDataById;